public class test {
    public static void main(String[] args) {
        int[] num = new int[15];
        Scanner scan= new Scanner(System.in);
        int i=0;
        while(true){
            System.out.println("请输入第"+(i+1)+"位同学的成绩");
            int a=scan.nextInt();
            if(a>0&&a<100){
                num[i]=a;
                i++;
            }else{
                System.out.println("输入错误，请重新输入");
            }
            if(i==num.length){
                break;
            }
        }
        for(int j=0;j<num.length;j++){
            System.out.print(num[j]+" ");
        }
    }
}